package com.kzw.oa.system.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "config")
public class SysConfig implements Serializable {
	private static final long serialVersionUID = 434786579832543015L;

	/**
	 * 开启验证码
	 */
	public static final String CODE_OPEN = "1";

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long configId;

	@Column(unique = true, length = 50)
	private String configKey;

	@Column(length = 50)
	private String configName;

	@Column
	private String configDesc;

	@Column(length = 50)
	private String typeName;

	@Column
	private Short dataType;

	@Column(length = 100)
	private String dataValue;

	@Column(length = 50)
	private String typeKey;

	public String getDataValue() {
		return dataValue;
	}

	public void setDataValue(String dataValue) {
		this.dataValue = dataValue;
	}

	/**
	 * Default Empty Constructor for class SysConfig
	 */
	public SysConfig() {
		super();
	}

	/**
	 * Default Key Fields Constructor for class SysConfig
	 */
	public SysConfig(Long in_configId) {
		this.setConfigId(in_configId);
	}

	/**
	 * *
	 * 
	 * @return Long
	 * @hibernate.id column="configId" type="java.lang.Long"
	 *               generator-class="native"
	 */
	public Long getConfigId() {
		return this.configId;
	}

	/**
	 * Set the configId
	 */
	public void setConfigId(Long aValue) {
		this.configId = aValue;
	}

	/**
	 * Key *
	 * 
	 * @return String
	 * @hibernate.property column="configKey" type="java.lang.String" length="64"
	 *                     not-null="true" unique="false"
	 */
	public String getConfigKey() {
		return this.configKey;
	}

	/**
	 * Set the configKey
	 * 
	 * @spring.validator type="required"
	 */
	public void setConfigKey(String aValue) {
		this.configKey = aValue;
	}

	/**
	 * 配置名称 *
	 * 
	 * @return String
	 * @hibernate.property column="configName" type="java.lang.String" length="64"
	 *                     not-null="true" unique="false"
	 */
	public String getConfigName() {
		return this.configName;
	}

	/**
	 * Set the configName
	 * 
	 * @spring.validator type="required"
	 */
	public void setConfigName(String aValue) {
		this.configName = aValue;
	}

	/**
	 * 配置描述 *
	 * 
	 * @return String
	 * @hibernate.property column="configDesc" type="java.lang.String" length="256"
	 *                     not-null="false" unique="false"
	 */
	public String getConfigDesc() {
		return this.configDesc;
	}

	/**
	 * Set the configDesc
	 */
	public void setConfigDesc(String aValue) {
		this.configDesc = aValue;
	}

	/**
	 * 所属分类名称 *
	 * 
	 * @return String
	 * @hibernate.property column="typeName" type="java.lang.String" length="32"
	 *                     not-null="true" unique="false"
	 */
	public String getTypeName() {
		return this.typeName;
	}

	/**
	 * Set the typeName
	 * 
	 * @spring.validator type="required"
	 */
	public void setTypeName(String aValue) {
		this.typeName = aValue;
	}

	/**
	 * 数据类型 1=varchar 2=intger 3=decimal 4=datetime 5=time
	 * 
	 * @return Short
	 * @hibernate.property column="dataType" type="java.lang.Short" length="5"
	 *                     not-null="true" unique="false"
	 */
	public Short getDataType() {
		return this.dataType;
	}

	/**
	 * Set the dataType
	 * 
	 * @spring.validator type="required"
	 */
	public void setDataType(Short aValue) {
		this.dataType = aValue;
	}

	public String getTypeKey() {
		return typeKey;
	}

	public void setTypeKey(String typeKey) {
		this.typeKey = typeKey;
	}

}
